package com.example.test.conview.view.tool;

import static com.puty.conputyview.common.PutyConst.HOUSEHOLD_SERIES;
import static com.puty.conputyview.common.PutyConst.INDUSTRY_SERIES;
import static com.puty.conputyview.common.PutyConst.SERIES_TYPE;

/**
 * Created by songgoo on 2017/8/16.
 */

public class Global {
    public static String[] industryFontTip;
    public static String[] industryFontTipTw;
    public static String[] industryFontTipUs;
    public static float[] fontSize;
    public static float[] industryFontRealArr;

    public static String[] householdFontTip;
    public static String[] householdFontTipTw;
    public static String[] householdFontTipUs;
    public static float[] householdFontRealArr;
    static {
        industryFontRealArr = new float[]{
        5, 5.5f, 6.5f, 7.5f,
        9, 10.5f, 12, 14,
        16, 18, 22, 26,
        34, 36, 39, 42,
        45, 5, 5.5f, 6.5f,
        7.5f, 8, 9, 10,
        10.5f, 11, 12, 14,
        16, 18, 20, 22,
        24, 26,28, 36,
        48,72, 80, 88,
        96, 104, 112, 120,
        128, 136, 144, 152,
        160, 168, 176, 184,
        192, 200, 208, 216,
        224, 232, 240, 248,
        256, 272, 288, 304,
        320, 336, 352, 368,
        384, 400, 416, 432,
        448, 464, 480, 496,
        512, 544, 576, 608,
        640, 672, 704, 736
        };
        industryFontTip = new String[] {
                "八号","七号" ,"小六号" ,"六号" ,"小五号" ,"五号" ,"小四号" ,"四号" ,"三号" ,"小二号" ,"二号" ,"一号" ,"大一号" ,
                "小初号" ,"初号","特号","特大号",
                "5", "5.5", "6.5",
                "7.5", "8", "9", "10",
                "10.5", "11", "12", "14",
                "16", "18", "20", "22",
                "24", "26","28", "36",
                "48",
                "72","80","88","96","104","112","120","128",
                "136", "144", "152",
                "160", "168", "176", "184",
                "192", "200", "208", "216",
                "224", "232", "240", "248",
                "256", "272", "288", "304",
                "320", "336", "352", "368",
                "384", "400", "416", "432",
                "448", "464", "480", "496",
                "512", "544", "576", "608",
                "640", "672", "704", "736"
        };
        industryFontTipTw = new String[] {
                "八號","七號" ,"小六號" ,"六號" ,"小五號" ,"五號" ,"小四號" ,"四號" ,"三號" ,"小二號" ,"二號" ,"一號" ,"大一號" ,"小初號" ,"初號","特號","特大號",
                "5", "5.5", "6.5",
                "7.5", "8", "9", "10",
                "10.5", "11", "12", "14",
                "16", "18", "20", "22",
                "24", "26","28", "36",
                "48",
                "72","80","88","96","104","112","120","128",
                "136", "144", "152",
                "160", "168", "176", "184",
                "192", "200", "208", "216",
                "224", "232", "240", "248",
                "256", "272", "288", "304",
                "320", "336", "352", "368",
                "384", "400", "416", "432",
                "448", "464", "480", "496",
                "512", "544", "576", "608",
                "640", "672", "704", "736"
        };
        industryFontTipUs = new String[] {
                "5", "5.5", "6.5", "7.5",
                "9", "10.5", "12", "14",
                "16", "18", "22", "26",
                "34", "36", "39", "42",
                "45",
                "5", "5.5", "6.5",
                "7.5", "8", "9", "10",
                "10.5", "11", "12", "14",
                "16", "18", "20", "22",
                "24", "26","28", "36",
                "48",
                "72","80","88","96","104","112","120","128",
                "136", "144", "152",
                "160", "168", "176", "184",
                "192", "200", "208", "216",
                "224", "232", "240", "248",
                "256", "272", "288", "304",
                "320", "336", "352", "368",
                "384", "400", "416", "432",
                "448", "464", "480", "496",
                "512", "544", "576", "608",
                "640", "672", "704", "736"
        };
        //----------家用系列-------------
        householdFontRealArr = new float[] {
                5, 5.5f, 6.5f,
                7.5f, 8, 9, 10,
                10.5f, 11, 12, 14,
                16, 18, 20, 22,
                24, 26,28, 36,
                48,72, 80, 88,
                96, 104, 112, 120,
                128, 136, 144, 152,
                160, 168, 176, 184,
                192, 200, 208, 216,
                224, 232, 240, 248,
                256, 272, 288, 304,
                320, 336, 352, 368,
                384, 400, 416, 432,
                448, 464, 480, 496,
                512, 544, 576, 608,
                640, 672, 704, 736
        };
        householdFontTip = new String[] {
                "5", "5.5", "6.5",
                "7.5", "8", "9", "10",
                "10.5", "11", "12", "14",
                "16", "18", "20", "22",
                "24", "26","28", "36",
                "48",
                "72","80","88","96","104","112","120","128",
                "136", "144", "152",
                "160", "168", "176", "184",
                "192", "200", "208", "216",
                "224", "232", "240", "248",
                "256", "272", "288", "304",
                "320", "336", "352", "368",
                "384", "400", "416", "432",
                "448", "464", "480", "496",
                "512", "544", "576", "608",
                "640", "672", "704", "736"
        };
        householdFontTipTw =new String[] {
                "5", "5.5", "6.5",
                "7.5", "8", "9", "10",
                "10.5", "11", "12", "14",
                "16", "18", "20", "22",
                "24", "26","28", "36",
                "48",
                "72","80","88","96","104","112","120","128",
                "136", "144", "152",
                "160", "168", "176", "184",
                "192", "200", "208", "216",
                "224", "232", "240", "248",
                "256", "272", "288", "304",
                "320", "336", "352", "368",
                "384", "400", "416", "432",
                "448", "464", "480", "496",
                "512", "544", "576", "608",
                "640", "672", "704", "736"
        };
        householdFontTipUs =new String[] {
                "5", "5.5", "6.5",
                "7.5", "8", "9", "10",
                "10.5", "11", "12", "14",
                "16", "18", "20", "22",
                "24", "26","28", "36",
                "48",
                "72","80","88","96","104","112","120","128",
                "136", "144", "152",
                "160", "168", "176", "184",
                "192", "200", "208", "216",
                "224", "232", "240", "248",
                "256", "272", "288", "304",
                "320", "336", "352", "368",
                "384", "400", "416", "432",
                "448", "464", "480", "496",
                "512", "544", "576", "608",
                "640", "672", "704", "736"
        };
        int fontSizeLength = 0;
        if (SERIES_TYPE == HOUSEHOLD_SERIES) {
            fontSizeLength = householdFontTip.length;
        } else if (SERIES_TYPE == INDUSTRY_SERIES) {
            fontSizeLength = industryFontTip.length;
        }
        fontSize = new float[fontSizeLength];
        for (int i = 0;i<fontSizeLength;i++){
            float fontReal = SERIES_TYPE == HOUSEHOLD_SERIES ? householdFontRealArr[i] : industryFontRealArr[i];
            fontSize[i] = fontReal * 0.35f;
        }
    }
    /**
     * 八号 16，七号 15，小六号 14，六号 13，小五号 12，五号 11，小四号 10，四号 9，三号 8，小二号 7，二号 6，一号 5，大一号 4，小初号 3，初号 2，特号 1，特大号 0，
     */
//    public static float[] fontSize={
//            1.581f,1.845f,2.416f,2.812f,3.163f,3.690f,4.218f,4.920f,5.623f,6.326f,7.381f,9.841f,11.071f,12.653f,14.761f,18.979f,22.142f,25.105f,28.117f,30.929f,33.740f,36.551f,39.364f,42.175f,44.987f,
//    };
}
